package com.village.friend.mapper;

import com.village.friend.entity.User;
import com.village.friend.entity.UserBlackList;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@Mapper
public interface UserBlackListMapper extends BaseMapper<UserBlackList> {
    List<User> list(Integer userId, Integer offset, Integer limit);

    Integer listCount(Integer userId);

    List<User> listBeBlack(Integer userId, Integer offset, Integer limit);

    Integer listCountBeBlack(Integer userId);
}
